//
//  Dog.m
//  08-类的扩展
//
//  Created by 402030900@qq.com on 16/7/13.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "Dog.h"
// 延展的声明方式
// @interface 类名()
@interface Dog ()
// 延展中,主要私有的属性/方法
@property(nonatomic,copy)NSString * food;
// 声明可写 可不写
-(void)eatFood;
@end
@implementation Dog
-(void)eatFood {
    NSLog(@"吃食物%@",_food);
}
-(void)run{
    NSLog(@"跑步");
}
-(void)sleep{
    NSLog(@"睡觉");
}
-(void)getDogLife{
    [self eatFood];
    [self run];
    [self sleep];
}
@end
